package com.xq.utils;

import cn.hutool.core.io.FileUtil;

import java.io.IOException;
import java.util.List;

/**
 * 文件操作工具类
 *
 * @author xu
 * 2021/8/31 14:44
 */
public class FileUtils {
    public static void main(String[] args) throws IOException {
        String url = "http://10.203.90.120:80/music-ws/file?url=L0NNQURBQVMvREFUQS9TVVJGL0FXUy9GVE0vMjAyMS8yMDIxMDgzMDAwL1pfU1VSRl9JX1IzNjM0LVJFR18yMDIxMDgzMDAwMDAwMF9SX0FXU19GVE0udHh0&userId=USR_TJ_DATA&serviceNodeId=NMIC_MUSIC_CMADAAS&timestamp=1630396462571&nonce=736fab73-5922-443a-8f76-4e9eaf36b6af&sign=8AA75451AD6B467F630EC7FCC5440BD1";
        String res = HttpUtils.sendGetFile(url);
        String[] str= res.split("\r\n");
        System.out.println(str.length);
        System.out.println(res);
        //List<String> stringList = FileUtil.readLines(url,"utf-8");
        //System.out.println(stringList.get(1).length());
        //System.out.println(stringList.get(1).split(" ").length);
    }
}
